package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.math.BigDecimal;

import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_ABSENTEEISM_DAYS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_ATTEND_DAYS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_ATTEND_PLAN_ID;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_COMPANY_ID;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_COMPANY_NAME;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_DEPT_ID;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_DEPT_NAME;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_EMP_INFO_ID;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_EMP_INFO_NAME;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_JOB_NUMBER;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_LATE_COUNTS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_LEAVE_DAYS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_MONTHLY;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_OFF_WORK_MISS_COUNTS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_ON_WORK_MISS_COUNTS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_REST_DAYS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_SHOULD_WORK_DAYS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.E_YEARLY;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.M_ATTEND_PLAN_ID_MAX;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.M_COMPANY_NAME_MAX;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.M_DEPT_ID_MAX;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.M_DEPT_NAME_MAX;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.M_EMP_INFO_ID_MAX;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.M_EMP_INFO_NAME_MAX;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.M_JOB_NUMBER_MAX;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.M_MONTHLY_MAX;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.M_YEARLY_MAX;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_ABSENTEEISM_DAYS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_ATTEND_DAYS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_ATTEND_PLAN_ID;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_COMPANY_ID;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_COMPANY_NAME;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_DEPT_ID;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_DEPT_NAME;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_EMP_INFO_ID;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_EMP_INFO_NAME;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_JOB_NUMBER;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_LATE_COUNTS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_LEAVE_DAYS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_MONTHLY;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_OFF_WORK_MISS_COUNTS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_ON_WORK_MISS_COUNTS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_REST_DAYS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_SHOULD_WORK_DAYS;
import static org.jsola.hr.example.AttendPeopleMonthlyStatExample.N_YEARLY;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【打卡人员月统计】的参数")
@Data
public class AttendPeopleMonthlyStatAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_COMPANY_NAME, example = E_COMPANY_NAME)
    @Length(max = 100, message = M_COMPANY_NAME_MAX)
    private String companyName;

    @ApiModelProperty(notes = N_DEPT_ID, example = E_DEPT_ID)
    @Length(max = 32, message = M_DEPT_ID_MAX)
    private String deptId;

    @ApiModelProperty(notes = N_DEPT_NAME, example = E_DEPT_NAME)
    @Length(max = 50, message = M_DEPT_NAME_MAX)
    private String deptName;

    @ApiModelProperty(notes = N_ATTEND_PLAN_ID, example = E_ATTEND_PLAN_ID)
    @Length(max = 32, message = M_ATTEND_PLAN_ID_MAX)
    private String attendPlanId;

    @ApiModelProperty(notes = N_EMP_INFO_ID, example = E_EMP_INFO_ID)
    @Length(max = 32, message = M_EMP_INFO_ID_MAX)
    private String empInfoId;

    @ApiModelProperty(notes = N_EMP_INFO_NAME, example = E_EMP_INFO_NAME)
    @Length(max = 50, message = M_EMP_INFO_NAME_MAX)
    private String empInfoName;

    @ApiModelProperty(notes = N_JOB_NUMBER, example = E_JOB_NUMBER)
    @Length(max = 50, message = M_JOB_NUMBER_MAX)
    private String jobNumber;

    @ApiModelProperty(notes = N_YEARLY, example = E_YEARLY)
    @Length(max = 10, message = M_YEARLY_MAX)
    private String yearly;

    @ApiModelProperty(notes = N_MONTHLY, example = E_MONTHLY)
    @Length(max = 10, message = M_MONTHLY_MAX)
    private String monthly;

    @ApiModelProperty(notes = N_SHOULD_WORK_DAYS, example = E_SHOULD_WORK_DAYS)
    private Integer shouldWorkDays;

    @ApiModelProperty(notes = N_ATTEND_DAYS, example = E_ATTEND_DAYS)
    private Integer attendDays;

    @ApiModelProperty(notes = N_REST_DAYS, example = E_REST_DAYS)
    private Integer restDays;

    @ApiModelProperty(notes = N_LATE_COUNTS, example = E_LATE_COUNTS)
    private Integer lateCounts;

    @ApiModelProperty(notes = N_ON_WORK_MISS_COUNTS, example = E_ON_WORK_MISS_COUNTS)
    private Integer onWorkMissCounts;

    @ApiModelProperty(notes = N_OFF_WORK_MISS_COUNTS, example = E_OFF_WORK_MISS_COUNTS)
    private Integer offWorkMissCounts;

    @ApiModelProperty(notes = N_ABSENTEEISM_DAYS, example = E_ABSENTEEISM_DAYS)
    private BigDecimal absenteeismDays;

    @ApiModelProperty(notes = N_LEAVE_DAYS, example = E_LEAVE_DAYS)
    private BigDecimal leaveDays;


}

